//只读属性

interface IPerson3{
    readonly name:string;
    readonly age:number;
}

let p31:IPerson3={name:'张三',age:30};

console.log(p31.name);
